package com.chen.controller.admin.post.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

@Data
@AllArgsConstructor
@NoArgsConstructor

@Schema(description = "岗位的基本VO")
public class BaseVO {
    /**
     * 岗位的code
     */
    @NotBlank(message = "岗位编码不能为空")
    @Schema(name = "code",description = "岗位编码",requiredMode = Schema.RequiredMode.REQUIRED,example = "111")
    public String code;
    /**
     * 岗位的名称
     */
    @Schema(name = "name",description = "岗位的名称",requiredMode = Schema.RequiredMode.REQUIRED,example = "111")
    @NotBlank(message = "岗位名称不能为空")
    private String name;
    /**
     * 岗位之间的排序
     */
    @Schema(name = "sort",description = "岗位之间的排序",requiredMode = Schema.RequiredMode.REQUIRED,example = "1")
    @NotNull(message = "排序字段不能为空")
    @Min(value = 1,message = "排序字段最小为1")
    private Integer sort;
    /**
     * 岗位状态
     */
    @Schema(name = "status",description = "岗位状态",requiredMode = Schema.RequiredMode.REQUIRED,example = "1")
    private Integer status;
    /**
     * 备注
     */
    @Schema(name = "remark",description = "岗位备注",requiredMode = Schema.RequiredMode.REQUIRED,example = "111")
    private String remark;
}
